home *** CD-ROM | disk | FTP | other *** search
- Path: in2.uu.net!bounce-back
- Date: 09 Jan 96 14:46:54 GMT
- Approved: fjh@cs.mu.oz.au
- From: Etay_Bogner@mail.stil.scitex.com (Etay Bogner)
- Newsgroups: comp.std.c++
- Subject: Re: Initialization of Static Components of a Template Class
- X-Original-Date: Tue, 09 Jan 1996 10:06:45 +0200
- Organization: Scitex Corp.
- Message-ID: <Etay_Bogner-0901961006450001@metay.stil.scitex.com>
- References: <4cr2m1$1kcq@news.gate.net>
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMPJ/6OEDnX0m9pzZAQG0YwF/YXCtmekaEL64NMrZN2k9p0ctQKLq73tI
- Q3gs6bU2LYwbz/FR9J/0E/drQqlbjZ4c
- =1T5h
-
- In article <4cr2m1$1kcq@news.gate.net>, solution@gate.net (Ken Walter) wrote:
-
- >> template<class T> int SOMEclass::AStatic(0);
-
- change it to :
-
- template<class T> int SOMEclass<T>::AStatic = 0; // = 0 is clearer for int's
- ^^^
- This is legal for quite some time now, and actually, I don't know why it
- passed the moderation, since it's surely a FAQ.
-
- --
- -- Etay Bogner,
- -- Etay_Bogner@mail.stil.scitex.com,
- -- Scitex Corp.
- -- Israel.
- ---
- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
- Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
- is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
-